﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="UpdateTour.aspx.cs" Inherits="OnlineBusTicket.UpdateTour" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        Update Tour:</p>
    <table class="style1">
        <tr>
            <td class="style2">
                BusListId:</td>
            <td>
                <asp:TextBox ID="txtBuslistId" runat="server"></asp:TextBox>
                <asp:Label ID="lblStatusBusListId" runat="server" ForeColor="Red"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtBuslistId" Display="Dynamic" 
                    ErrorMessage="BuslistId not be empty." ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                TotalNumberOfSeats:</td>
            <td>
                <asp:TextBox ID="txtTotalseat" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtTotalseat" Display="Dynamic" 
                    ErrorMessage="TotalNumberOfSeats not be empty." ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                BusCategory :</td>
            <td>
                <asp:TextBox ID="txtCategory" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtCategory" Display="Dynamic" 
                    ErrorMessage="BusCategory not be empty." ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                DeparturePlace:</td>
            <td>
                <asp:TextBox ID="txtDepart" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtDepart" Display="Dynamic" 
                    ErrorMessage="DeparturePlace not be empty." ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                ArrivePlace:</td>
            <td>
                <asp:TextBox ID="txtArrive" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtArrive" Display="Dynamic" 
                    ErrorMessage="ArrivePlace not be empty." ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
                StartDay 
                (mm/dd/yyyy):</td>
            <td class="style4">
                <asp:TextBox ID="txtStartDay" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="txtStartDay" Display="Dynamic" 
                    ErrorMessage="StartDay not be empty." ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator4" runat="server" 
                    ControlToValidate="txtStartDay" Display="Dynamic" 
                    ErrorMessage="Invalid StartDay (eg: mm/dd/yyyy)" ForeColor="Red" 
                    Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
                StartTime (hh:mm:ss):</td>
            <td class="style4">
                <asp:TextBox ID="txtStartTime" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="txtStartTime" Display="Dynamic" 
                    ErrorMessage="StartTime not be empty." ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td class="style4">
                </td>
        </tr>
        <tr>
            <td class="style2">
                EndDay (mm/dd/yyyy):</td>
            <td>
                <asp:TextBox ID="txtEndDay" runat="server"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtStartDay" ControlToValidate="txtEndDay" Display="Dynamic" 
                    ErrorMessage="EndDate must be greater than StartDay." ForeColor="Red" 
                    Operator="GreaterThanEqual" Type="Date"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                    ControlToValidate="txtEndDay" Display="Dynamic" 
                    ErrorMessage="EndDay not be empty." ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator5" runat="server" Display="Dynamic" 
                    ErrorMessage="Invalid StartDay (eg: mm/dd/yyyy)" ForeColor="Red" 
                    Operator="DataTypeCheck" Type="Date" ControlToValidate="txtEndDay"></asp:CompareValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                Price:</td>
            <td>
                <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                    ControlToValidate="txtPrice" Display="Dynamic" 
                    ErrorMessage="Price not be empty." ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator3" runat="server" 
                    ControlToValidate="txtPrice" ErrorMessage="Invalid price." ForeColor="Red" 
                    Operator="GreaterThan" Type="Currency" ValueToCompare="0"></asp:CompareValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                <asp:Button ID="btnAddbus" runat="server" onclick="Button2_Click1" 
                    Text="Add bus" />
                <asp:Button ID="btnUpdateBus" runat="server" Text="Update bus" 
                    onclick="Button1_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <p>
        &nbsp;</p>
</asp:Content>
